<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	request.setAttribute("path", path);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>设备管理系统主页</title>
<link rel="stylesheet" href="${path}/bootstrap3/css/bootstrap.min.css">
<link rel="stylesheet" href="${path}/bootstrap3/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="${path}/css/equipment.css">
<link rel="stylesheet" href="${path}/css/crumbs.css">
<script src="${path}/bootstrap3/js/jquery-1.11.2.min.js"></script>
<script src="${path}/bootstrap3/js/bootstrap.min.js"></script>
<script src="${path}/js/lib/angularJs/angular.min.js"></script>
<script src="${path}/js/lib/angularJs/ocLazyLoad.min.js"></script>
<script
	src="https://cdn.bootcss.com/angular-ui-router/1.0.3/angular-ui-router.js"></script>
<script src="${path}/js/lib/appConfig.js"></script>
<script src="${path}/js/web/appRoute.js"></script>
<script src="${path}/js/lib/system/main.js"></script>
<%
	/* if(session.getAttribute("currentUser")==null){
		response.sendRedirect(request.getContextPath()+"/login.jsp");
		return;
	}*/

	 String mainPage=(String)request.getAttribute("mainPage");
	if(mainPage==null || mainPage.equals("")){
		mainPage="/jsp/web/list.jsp";
	}  
%>
</head>
<body ng-app='app'>
<div class="container">
  <div class="row">
	  <div class="col-md-12">
	  	<jsp:include page="/jsp/web/commons/head.jsp"/>
	  </div>
  </div>
  <div class="row" style="padding-top: 45px">
	  <div class="col-md-3">
	  	<jsp:include page="/jsp/web/menu.jsp"/>
	  </div>
	  <div class="col-md-9">
	  	<div>
			<ol class="breadcrumb">
			  <li><span class="glyphicon glyphicon-home"></span>&nbsp;<a href="${path}/main/">主页</a></li>
			  <li class="active">${modeName }</li>
			</ol>
		</div>
		 <%-- <jsp:include page="<%=mainPage %>"/> --%> 
		 <div ui-view></div>
	  </div>
  </div>
  <div class="row">
	  <div class="col-md-12">
	  	<jsp:include page="/jsp/web/commons/foot.jsp"/>
	  </div>
  </div>
</div>
</body>
</html>